from fastapi import APIRouter, Depends, Request

from app.api.h5.service.shop.shop import ShopService
from app.utils.res import unified_resp


shop = APIRouter(prefix="/shop", tags=["店铺信息"])


@shop.post("/info")
@unified_resp
async def info(request: Request, shop_service: ShopService = Depends(ShopService.instance)):
    print("request", request.method)

    return await shop_service.info()
